using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;


public class MiniVNEditor :EditorWindow
{
    private string myString = "Hello World";
    private bool groupEnabled;
    private bool myBool = true;
    private float myFloat = 1.23f;
   

    // Introduction about MiniVNEditor
    [MenuItem("MiniVNEditor/About",false,1)]
    private static void Init() {
        // Get existing open window or if none,make a new one;
        MiniVNEditor window = (MiniVNEditor)EditorWindow.GetWindow(typeof(MiniVNEditor),false,"About MiniVNEitor");
        window.Show();
    }

    // Window details
    private void OnGUI()
    {
        GUILayout.Label("Base Settings", EditorStyles.boldLabel);
        myString = EditorGUILayout.TextField("Text Field", myString);
        groupEnabled = EditorGUILayout.BeginToggleGroup("Optional Settings", groupEnabled);
        myBool = EditorGUILayout.Toggle("Toggle", myBool);
        myFloat = EditorGUILayout.Slider("Slider", myFloat, -3, 3);
        EditorGUILayout.EndToggleGroup();
    }

    [MenuItem("MiniVNEditor/Resources/Characters",false,10)]
    private static void CharacterManager()
    {
        Debug.Log("managing character");
    }

    [MenuItem("MiniVNEditor/Resources/Backgrounds", false, 10)]
    private static void BackgroundManager()
    {
        Debug.Log("managing background");
    }

    [MenuItem("MiniVNEditor/Resources/Text Printers", false, 10)]
    private static void TextPrinterManager()
    {
        Debug.Log("managing text printer");
    }

    [MenuItem("MiniVNEditor/Resources/Scripts", false, 10)]
    private static void ScriptManager()
    {
        Debug.Log("managing script");
    }

    [MenuItem("MiniVNEditor/Tools/Localization", false, 20)]
    private static void Localization()
    {
        Debug.Log("Here to change path");
    }


}
